﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KitBuildingWF.Views
{
    public partial class InputDialog : Form
    {
        private bool result = false;

        public InputDialog(string info)
        {
            InitializeComponent();
            InfoLabel.Text = info;
        }

        private void YesBtn_Click(object sender, EventArgs e)
        {
            result = true;
            this.Close();
        }

        private void NoBtn_Click(object sender, EventArgs e)
        {
            result = false;
            this.Close();
        }

        /// <summary>
        /// Get which button was clicked. 
        /// </summary>
        /// <returns>true if "Yes" button was clicked, return false otherwise</returns>
        public bool GetResult()
        {
            return result;
        }
    }
}
